package com.pers.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import tk.mybatis.spring.annotation.MapperScan;


/**
 * @Author: 黄建
 * @Date: 2020/3/6 17:22
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.pers.springcloud.mapper"})
@EnableEurekaClient
public class PaymentMain8002 {

   /* @Bean
    public MapperScannerConfigurer mapperScannerConfigurer() {
        MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
        mapperScannerConfigurer.setBasePackage("com.pers.springcloud.mapper");
        Properties propertiesMapper = new Properties();
        // 通用mapper位置，不要和其他mapper、dao放在同一个目录
        propertiesMapper.setProperty("mappers", "com.pers.springcloud.my.mapper.MyMapper");
        propertiesMapper.setProperty("notEmpty", "false");
        // 主键UUID回写方法执行顺序,默认AFTER,可选值为(BEFORE|AFTER)
        propertiesMapper.setProperty("ORDER", "BEFORE");
        mapperScannerConfigurer.setProperties(propertiesMapper);
        return mapperScannerConfigurer;
    }*/

    public static void main(String[] args) {
        SpringApplication.run(PaymentMain8002.class,args);
    }
}
